QT       += core gui multimediawidgets

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

#libraries
unix: CONFIG += link_pkgconfig
#opencv
unix: PKGCONFIG += opencv

unix: !macx: LIBS += -lpthread
#V4L2
unix: !macx: LIBS += -lv4l2

SOURCES += \
    Camera/camera.cpp \
    Driver/RMVideoCapture.cpp \
    Effect/effect.cpp \
    FaceDetect/facedetect.cpp \
    FaceDetect/src/bif.cpp \
    FaceDetect/src/eigen_faces.cpp \
    FaceDetect/src/face_alignment.cpp \
    FaceDetect/src/face_basic.cpp \
    FaceDetect/src/facemark.cpp \
    FaceDetect/src/facemarkAAM.cpp \
    FaceDetect/src/facemarkLBF.cpp \
    FaceDetect/src/facerec.cpp \
    FaceDetect/src/fisher_faces.cpp \
    FaceDetect/src/getlandmarks.cpp \
    FaceDetect/src/lbph_faces.cpp \
    FaceDetect/src/mace.cpp \
    FaceDetect/src/predict_collector.cpp \
    FaceDetect/src/regtree.cpp \
    FaceDetect/src/trainFacemark.cpp \
    main.cpp \
    mainwindow.cpp

HEADERS += \
    Camera/camera.h \
    Driver/RMVideoCapture.hpp \
    Effect/effect.h \
    FaceDetect/face.hpp \
    FaceDetect/face/bif.hpp \
    FaceDetect/face/face_alignment.hpp \
    FaceDetect/face/facemark.hpp \
    FaceDetect/face/facemarkAAM.hpp \
    FaceDetect/face/facemarkLBF.hpp \
    FaceDetect/face/facemark_train.hpp \
    FaceDetect/face/facerec.hpp \
    FaceDetect/face/mace.hpp \
    FaceDetect/face/predict_collector.hpp \
    FaceDetect/facedetect.h \
    FaceDetect/src/face_alignmentimpl.hpp \
    FaceDetect/src/face_utils.hpp \
    FaceDetect/src/precomp.hpp \
    mainwindow.h

FORMS += \
    mainwindow.ui

TRANSLATIONS += \
    Test_zh_CN.ts

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
